exports.install = function(Vue, options) {
  const Ewx = false;
  Vue.prototype.ewxJudge = function() {
    //全局函数判断是不是企业微信中打开
    //var ua = navigator.userAgent.toLowerCase();
    //   var isWeixin = ua.indexOf("wxwork") != -1;
    var url = document.location.toString();
    var arrObj = url.split("?");
    if (arrObj.length > 1) {
      var arrPara = arrObj[1].split("&");
      var link;
      for (var i = 1; i < arrPara.length; i++) {
        link = arrPara[i].split("=");
        var link1 = link[1].split("#");
        var isWeixin = link1[0];
      }
    }
    if (isWeixin == "workweixin") {
      this.Ewx = true;
    } else {
      this.Ewx = false;
    }
  };
};
